package com.local.springcloud.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author lou ke
 * @version 1.0
 * @since 2020/7/29 17:29
 */
@Configuration //相当于spring  中的 applicationContext.xml
public class ConfigBean {

    @Bean
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

}
